package com.dc.tests;

import org.testng.annotations.Test;

/**
 * @author xcj
 * @date 2022/5/27 16:14
 */
public class PayDemo {

    @Test
    public void payInit(){
        System.out.println("支付初始化！！");
    }

    @Test(dependsOnMethods = "payInit")
    public void preOrder(){
        System.out.println("预下单！！！");
        throw new RuntimeException("预下单失败！！！");
    }

    @Test(dependsOnMethods = "preOrder")
    public void pay(){
        System.out.println("付费！！");
    }

}
